<!doctype html><html><head><meta charset="utf-8" />
<title></title>
<script src="../uuCanvas.js"></script>
<script>
function xcanvas(uu) {
  var width = 300;
  var height = 150;
  var backendOrder = "flash sl vml";

  if (0) {
    // 挿入位置を placeholder で指定
    var canvas = uu.canvas.create(width, height, backendOrder,
                                  uu.id("placeholder"));
  } else {
    // &lt;body&gt;に追加
    var canvas = uu.canvas.create();
  }

  var ctx = canvas.getContext("2d");

  ctx.textBaseline = "top";
  ctx.font = "32pt 'Times New Roman'";
  ctx.fillStyle = "black";
  ctx.shadowColor = "gray";
  ctx.shadowOffsetX = 10;
  ctx.shadowOffsetY = 10;
  ctx.shadowBlur = 5;
  ctx.fillText("Hello Canvas", 0, 0);
}
</script></head><body>
    <div id="placeholder"></div>
</body></html>
